<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link type="text/css" href="/css/start/jquery-ui-1.8.21.custom.css" rel="Stylesheet" />	
		<script type="text/javascript" language="javascript" src="/js/jquery.js"></script>
<!--<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>-->

</head>
<body>
<?php $stfD = new Model_DbTable_Roster_Stafflogindetail();
?>

	<?php foreach ($this->rs as $k => $v){ ?>
			<table width="1000" border="1" cellspacing="1" cellpadding="5">
	<tr>
		<th>Shop</th>
		<th>Name</th>
		<th>2015-07-19</th>
		<th>2015-07-12</th>
		<th>2015-07-05</th>
		<th>2015-06-28</th>
	</tr>
			
			<?php 	if($k == 'ADPC' || $k == 'CLPC' || $k == 'WLIC'){
						date_default_timezone_set('Australia/Adelaide');
					}else{
						
						date_default_timezone_set('Australia/Melbourne');
					} ?>
			<?php foreach ($v as $k2 => $v2){
				
					$name = $stfD->getDetail($k2);?>
			<tr>
				<td><?php echo $k?></td>
				<td><?php echo Model_EncryptHelper::getSslPassword($name['n'])."(".$name['ni'].")";?></td>
				<td><?php if(isset($v2['2015-07-19'])){echo date('H:i',$v2['2015-07-19']['confirm_shift_begin'])."-".date('H:i',$v2['2015-07-19']['confirm_shift_end']);}else{ echo "N/A";}?></td>
				<td><?php if(isset($v2['2015-07-12'])){echo date('H:i',$v2['2015-07-12']['confirm_shift_begin'])."-".date('H:i',$v2['2015-07-12']['confirm_shift_end']);}else{ echo "N/A";}?></td>
				<td><?php if(isset($v2['2015-07-05'])){echo date('H:i',$v2['2015-07-05']['confirm_shift_begin'])."-".date('H:i',$v2['2015-07-05']['confirm_shift_end']);}else{ echo "N/A";}?></td>
				<td><?php if(isset($v2['2015-06-28'])){echo date('H:i',$v2['2015-06-28']['confirm_shift_begin'])."-".date('H:i',$v2['2015-06-28']['confirm_shift_end']);}else{ echo "N/A";}?></td>
			</tr>
			<?php }?>
			</table>
			<br/>
	<?php }?>


	
</body>
</html>
